<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
include_once("tp/Smarty.class.php");
class Mytp extends Smarty 
{
	function Mytp()
	{
		
        $this->template_dir = "./templates/";
		$this->compile_dir = "./phpcache/";
		$this->left_delimiter = "<!--{"; //左边界
        $this->right_delimiter = "}-->"; //右边界
        $this->assign('_TEMPLATESDIR',templateurl.'templates'."/admin");
       
		$this->assign('_BASEURL',templateurl."admin/");
		$this->assign('_DIRURL',templateurl);
		$this->assign('_BASEURL_',_baseurl_);
	}
	function tp($file)
	{
		$this->display("admin/".$file.".htm");
	}

	
	
	
}
?>